#ifndef _POWER_H_
#define _POWER_H_

#include "gtmonitor.h"
#include "common.h"

typedef struct power_proto {
    char status[16]; // C: Charging
                     // D: Discharging
                     // N: Not charging
                     // F: Full
                     // U: Unknown
    char health[16]; // D: Dead
                     // G: Good
                     // O: Overheat
                     // S: Unspecified failure
                     // U: Unknown
    char technology[16];
    int capacity;
    int voltage;
    int temperature;
    int aconline;
    int usbonline;
} power_info;

void init_power();

void power_dump();

int get_power_capacity();

int get_power_voltage();

int get_power_temperature();

int get_power_aconline();

int get_power_usbonline();

void get_power_health(char *buf);

void get_power_status(char *buf);

void get_power_technology(char *buf);

#endif /* _POWER_H_ */
